package com.xsr.job;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project kuzi
 * @date 2022/9/16 19:13
 */
public class MyJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDetail jobDetail = context.getJobDetail();
        System.err.println("job 执行"+new Date() + "===name===" + jobDetail.getKey().getName() + "===group===" + jobDetail.getKey().getGroup());
    }
    }

